package com.market.controller.admin;

import com.market.bean.MarketLog;
import com.market.bean.common.BasePageInfo;
import com.market.bean.common.BaseRespVo;
import com.market.bean.common.CommonData;
import com.market.service.admin.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统管理模块-操作日志
 * @since 2022/12/29 17:43
 * @author 2731235517@qq.com 谢畅
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo basePageInfo, String name) {
        CommonData<MarketLog> commonData = adminLogService.list(basePageInfo,name);
        return BaseRespVo.ok(commonData);
    }
}
